package com.jky.stmall.manger.service;

import com.github.pagehelper.PageInfo;
import com.jky.stmall.manger.entity.Goods;

import java.util.List;

public interface GoodsService {
    /**
     * 添加
     */

    int add(Goods goods) throws Exception;
    /**
     * 删除
     */
    int remove(Integer id) throws  Exception;
    /**
     * 修改
     */
    int edit (Goods goods) throws Exception;
    /**
     * 根据id查询
     */
    Goods getById(Integer id) throws Exception;

    List<Goods> search(Goods goods);
    /**
     * 分页搜索
     */
    PageInfo searchByPage(Integer page, Integer limit, Goods goods);
}
